<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-CPP: THscrollLabel类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-CPP
   </div>
   <div id="projectbrief">AWTK CPP API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_t_hscroll_label-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">THscrollLabel类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a>&gt;</code></p>
<div class="dynheader">
类 THscrollLabel 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_t_hscroll_label.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a014d831e4c16c0c5711bfa20484bf087"><td class="memItemLeft" align="right" valign="top"><a id="a014d831e4c16c0c5711bfa20484bf087"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>THscrollLabel</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:a014d831e4c16c0c5711bfa20484bf087"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b56ab3014e7ce8d4ae65010e9c64c68"><td class="memItemLeft" align="right" valign="top"><a id="a4b56ab3014e7ce8d4ae65010e9c64c68"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>THscrollLabel</b> (const hscroll_label_t *nativeObj)</td></tr>
<tr class="separator:a4b56ab3014e7ce8d4ae65010e9c64c68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac29f5357476d93ebe59751e260ff690e"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_hscroll_label.html#ac29f5357476d93ebe59751e260ff690e">SetLull</a> (int32_t lull)</td></tr>
<tr class="separator:ac29f5357476d93ebe59751e260ff690e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9561b455542c20d0b96f574ad22276e6"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_hscroll_label.html#a9561b455542c20d0b96f574ad22276e6">SetDuration</a> (int32_t duration)</td></tr>
<tr class="separator:a9561b455542c20d0b96f574ad22276e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a205fee2a33f07951bfd19e6ecbd22f3d"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_hscroll_label.html#a205fee2a33f07951bfd19e6ecbd22f3d">SetOnlyFocus</a> (bool only_focus)</td></tr>
<tr class="separator:a205fee2a33f07951bfd19e6ecbd22f3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8eb9aecb9e92669f0deed78f861700c6"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_hscroll_label.html#a8eb9aecb9e92669f0deed78f861700c6">SetOnlyParentFocus</a> (bool only_parent_focus)</td></tr>
<tr class="separator:a8eb9aecb9e92669f0deed78f861700c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa213c8b5f22c5b3600457295762360b9"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_hscroll_label.html#aa213c8b5f22c5b3600457295762360b9">SetLoop</a> (bool loop)</td></tr>
<tr class="separator:aa213c8b5f22c5b3600457295762360b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8054ed2e854367edb9d3cfc6109b2648"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_hscroll_label.html#a8054ed2e854367edb9d3cfc6109b2648">SetYoyo</a> (bool yoyo)</td></tr>
<tr class="separator:a8054ed2e854367edb9d3cfc6109b2648"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac13671cd9403125ad548d10daf05cc27"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_hscroll_label.html#ac13671cd9403125ad548d10daf05cc27">SetEllipses</a> (bool ellipses)</td></tr>
<tr class="separator:ac13671cd9403125ad548d10daf05cc27"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace7dca403bf68bc3350ca59cf3af35fc"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_hscroll_label.html#ace7dca403bf68bc3350ca59cf3af35fc">SetXoffset</a> (int32_t xoffset)</td></tr>
<tr class="separator:ace7dca403bf68bc3350ca59cf3af35fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc3e558029cdec584a1a829e18439c3b"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_hscroll_label.html#afc3e558029cdec584a1a829e18439c3b">Start</a> ()</td></tr>
<tr class="separator:afc3e558029cdec584a1a829e18439c3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b83732e886a921fb514afc7e26f917e"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_hscroll_label.html#a6b83732e886a921fb514afc7e26f917e">Stop</a> ()</td></tr>
<tr class="separator:a6b83732e886a921fb514afc7e26f917e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f72268ef54f473c57cd7d3c0d2464be"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_hscroll_label.html#a3f72268ef54f473c57cd7d3c0d2464be">GetOnlyFocus</a> () const</td></tr>
<tr class="separator:a3f72268ef54f473c57cd7d3c0d2464be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afee6b3e74e21ed4b80d792ead29a8ef8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_hscroll_label.html#afee6b3e74e21ed4b80d792ead29a8ef8">GetOnlyParentFocus</a> () const</td></tr>
<tr class="separator:afee6b3e74e21ed4b80d792ead29a8ef8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f89b4a02e9831459ebc5fbb417dd848"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_hscroll_label.html#a9f89b4a02e9831459ebc5fbb417dd848">GetLoop</a> () const</td></tr>
<tr class="separator:a9f89b4a02e9831459ebc5fbb417dd848"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7281838e828f712169554646504dd3e7"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_hscroll_label.html#a7281838e828f712169554646504dd3e7">GetYoyo</a> () const</td></tr>
<tr class="separator:a7281838e828f712169554646504dd3e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71c082771f8ca65247f5322e23d3447e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_hscroll_label.html#a71c082771f8ca65247f5322e23d3447e">GetEllipses</a> () const</td></tr>
<tr class="separator:a71c082771f8ca65247f5322e23d3447e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acebad6bd91cf8cd1f6ae5f710b9cd0f0"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_hscroll_label.html#acebad6bd91cf8cd1f6ae5f710b9cd0f0">GetLull</a> () const</td></tr>
<tr class="separator:acebad6bd91cf8cd1f6ae5f710b9cd0f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb270b99bb125291a810b88a4fe5f1cc"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_hscroll_label.html#aeb270b99bb125291a810b88a4fe5f1cc">GetDuration</a> () const</td></tr>
<tr class="separator:aeb270b99bb125291a810b88a4fe5f1cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6cae9e3d4b65ee9a8489d0fd06771c9b"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_hscroll_label.html#a6cae9e3d4b65ee9a8489d0fd06771c9b">GetXoffset</a> () const</td></tr>
<tr class="separator:a6cae9e3d4b65ee9a8489d0fd06771c9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa37e022ce6bf60f48c0c11245d032fc7"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_hscroll_label.html#aa37e022ce6bf60f48c0c11245d032fc7">GetTextW</a> () const</td></tr>
<tr class="separator:aa37e022ce6bf60f48c0c11245d032fc7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a66bca5b757d0b7f5229f9ef32c389114"><td class="memItemLeft" align="right" valign="top"><a id="a66bca5b757d0b7f5229f9ef32c389114"></a>
static <a class="el" href="class_t_hscroll_label.html">THscrollLabel</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:a66bca5b757d0b7f5229f9ef32c389114"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89f7df780936e29b3f3b7f846332c064"><td class="memItemLeft" align="right" valign="top"><a id="a89f7df780936e29b3f3b7f846332c064"></a>
static <a class="el" href="class_t_hscroll_label.html">THscrollLabel</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const widget_t *nativeObj)</td></tr>
<tr class="separator:a89f7df780936e29b3f3b7f846332c064"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af048360ecb981d7af22e7399be80059a"><td class="memItemLeft" align="right" valign="top"><a id="af048360ecb981d7af22e7399be80059a"></a>
static <a class="el" href="class_t_hscroll_label.html">THscrollLabel</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (TWidget &amp;obj)</td></tr>
<tr class="separator:af048360ecb981d7af22e7399be80059a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf9dbe45804f5129d0b3a9e2b99ebc7b"><td class="memItemLeft" align="right" valign="top"><a id="acf9dbe45804f5129d0b3a9e2b99ebc7b"></a>
static <a class="el" href="class_t_hscroll_label.html">THscrollLabel</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const TWidget &amp;obj)</td></tr>
<tr class="separator:acf9dbe45804f5129d0b3a9e2b99ebc7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab04e3a31dfe555b8addc8b855fc2dff2"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_hscroll_label.html#ab04e3a31dfe555b8addc8b855fc2dff2">Create</a> (TWidget &amp;parent, xy_t x, xy_t y, wh_t w, wh_t h)</td></tr>
<tr class="separator:ab04e3a31dfe555b8addc8b855fc2dff2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>可水平滚动的文本控件，方便实现长文本滚动。</p>
<p>hscroll_label_t是widget\_t的子类控件，widget_t的函数均适用于hscroll_label_t控件。</p>
<p>在xml中使用"hscroll\_label"标签创建行号控件，一般配合mledit使用。如：</p>
<div class="fragment"></div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考：[mledit.xml]( </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/mledit.xml">https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/mledit.xml</a>)</p>
<p>可用通过style来设置控件的显示风格，如字体的大小和颜色等等。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;default&quot;</span> <span class="keyword">text_color</span>=<span class="stringliteral">&quot;black&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">normal</span>   /&gt;</div>
<div class="line">*&lt;<span class="keywordtype">focused</span>  /&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">style</span>&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/styles/default.xml">theme default</a> </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="ab04e3a31dfe555b8addc8b855fc2dff2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab04e3a31dfe555b8addc8b855fc2dff2">&#9670;&nbsp;</a></span>Create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget THscrollLabel::Create </td>
          <td>(</td>
          <td class="paramtype">TWidget &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建hscroll_label对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="aeb270b99bb125291a810b88a4fe5f1cc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb270b99bb125291a810b88a4fe5f1cc">&#9670;&nbsp;</a></span>GetDuration()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t THscrollLabel::GetDuration </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>完整的滚动一次需要的时间(ms)，缺省5000ms。 </p>

</div>
</div>
<a id="a71c082771f8ca65247f5322e23d3447e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71c082771f8ca65247f5322e23d3447e">&#9670;&nbsp;</a></span>GetEllipses()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool THscrollLabel::GetEllipses </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>文本显示不下时，在行尾显示省略号(缺省FALSE)。 </p>

</div>
</div>
<a id="a9f89b4a02e9831459ebc5fbb417dd848"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9f89b4a02e9831459ebc5fbb417dd848">&#9670;&nbsp;</a></span>GetLoop()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool THscrollLabel::GetLoop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>loop是否循环滚动(缺省FALSE)。 </p>

</div>
</div>
<a id="acebad6bd91cf8cd1f6ae5f710b9cd0f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acebad6bd91cf8cd1f6ae5f710b9cd0f0">&#9670;&nbsp;</a></span>GetLull()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t THscrollLabel::GetLull </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>滚动之间的间歇时间(ms)，缺省3000ms。 </p>

</div>
</div>
<a id="a3f72268ef54f473c57cd7d3c0d2464be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f72268ef54f473c57cd7d3c0d2464be">&#9670;&nbsp;</a></span>GetOnlyFocus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool THscrollLabel::GetOnlyFocus </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>只有处于focus时才滚动(缺省否)。 </p>

</div>
</div>
<a id="afee6b3e74e21ed4b80d792ead29a8ef8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afee6b3e74e21ed4b80d792ead29a8ef8">&#9670;&nbsp;</a></span>GetOnlyParentFocus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool THscrollLabel::GetOnlyParentFocus </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>只有父控件处于focus时才滚动(缺省否)。 </p>

</div>
</div>
<a id="aa37e022ce6bf60f48c0c11245d032fc7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa37e022ce6bf60f48c0c11245d032fc7">&#9670;&nbsp;</a></span>GetTextW()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t THscrollLabel::GetTextW </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>文本的宽度。 </p>

</div>
</div>
<a id="a6cae9e3d4b65ee9a8489d0fd06771c9b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6cae9e3d4b65ee9a8489d0fd06771c9b">&#9670;&nbsp;</a></span>GetXoffset()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t THscrollLabel::GetXoffset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>偏移量。 </p>

</div>
</div>
<a id="a7281838e828f712169554646504dd3e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7281838e828f712169554646504dd3e7">&#9670;&nbsp;</a></span>GetYoyo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool THscrollLabel::GetYoyo </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否往返滚动(缺省FALSE)。 </p>

</div>
</div>
<a id="a9561b455542c20d0b96f574ad22276e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9561b455542c20d0b96f574ad22276e6">&#9670;&nbsp;</a></span>SetDuration()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t THscrollLabel::SetDuration </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>duration</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置duration。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">duration</td><td>滚动时间(ms)。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ac13671cd9403125ad548d10daf05cc27"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac13671cd9403125ad548d10daf05cc27">&#9670;&nbsp;</a></span>SetEllipses()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t THscrollLabel::SetEllipses </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>ellipses</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置ellipses。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ellipses</td><td>是否在文本超长时在行尾显示"..."。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aa213c8b5f22c5b3600457295762360b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa213c8b5f22c5b3600457295762360b9">&#9670;&nbsp;</a></span>SetLoop()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t THscrollLabel::SetLoop </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>loop</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置loop。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">loop</td><td>是否循环滚动。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ac29f5357476d93ebe59751e260ff690e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac29f5357476d93ebe59751e260ff690e">&#9670;&nbsp;</a></span>SetLull()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t THscrollLabel::SetLull </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>lull</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置lull。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">lull</td><td>间歇时间(ms)。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a205fee2a33f07951bfd19e6ecbd22f3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a205fee2a33f07951bfd19e6ecbd22f3d">&#9670;&nbsp;</a></span>SetOnlyFocus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t THscrollLabel::SetOnlyFocus </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>only_focus</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置only_focus。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">only_focus</td><td>是否只有处于focus时才滚动。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a8eb9aecb9e92669f0deed78f861700c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8eb9aecb9e92669f0deed78f861700c6">&#9670;&nbsp;</a></span>SetOnlyParentFocus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t THscrollLabel::SetOnlyParentFocus </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>only_parent_focus</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置only_parent_focus。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">only_parent_focus</td><td>是否只有处于focus时才滚动。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ace7dca403bf68bc3350ca59cf3af35fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace7dca403bf68bc3350ca59cf3af35fc">&#9670;&nbsp;</a></span>SetXoffset()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t THscrollLabel::SetXoffset </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>xoffset</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置x偏移(一般无需用户调用)。。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">xoffset</td><td>x偏移。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a8054ed2e854367edb9d3cfc6109b2648"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8054ed2e854367edb9d3cfc6109b2648">&#9670;&nbsp;</a></span>SetYoyo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t THscrollLabel::SetYoyo </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>yoyo</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置yoyo。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">yoyo</td><td>是否往返滚动。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="afc3e558029cdec584a1a829e18439c3b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afc3e558029cdec584a1a829e18439c3b">&#9670;&nbsp;</a></span>Start()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t THscrollLabel::Start </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>启动(一般无需用户调用)。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a6b83732e886a921fb514afc7e26f917e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6b83732e886a921fb514afc7e26f917e">&#9670;&nbsp;</a></span>Stop()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t THscrollLabel::Stop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>停止(一般无需用户调用)。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a></li>
<li>output/awtk_cpp.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
